package com.apexsoft.monitor.front.console.task.om;


import com.alibaba.fastjson.JSONObject;

public class TaskNew {

    private String nodeCode;
    private String taskCode;
    private String taskName;
    private String type;
    private Integer status;
    private String value;
    private String attr;

    public TaskNew() {

    }

    public TaskNew(JSONObject taskJson) {
        this.nodeCode = taskJson.getString("node_code");
        this.taskCode = taskJson.getString("task_code");
        this.type = taskJson.getString("task_type");
        this.value = taskJson.getString("value");
        this.taskName = taskJson.getString("task_name");
        this.attr = taskJson.getString("attr");
        this.status = taskJson.getIntValue("status");
    }

    public String getNodeCode() {
        return nodeCode;
    }

    public void setNodeCode(String nodeCode) {
        this.nodeCode = nodeCode;
    }

    public String getTaskCode() {
        return taskCode;
    }

    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getAttr() {
        return attr;
    }

    public void setAttr(String attr) {
        this.attr = attr;
    }
}
